﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LanCommunity.ToolStripRenderer;

namespace LanCommunity
{
    public partial class SearchDevicesForm : Form
    {
        public SearchDevicesForm()
        {
            InitializeComponent();

            //domyślny renderer - wygląd natywny
            RendererManager.Active(this);

            //wywołanie zdarzenie Resize tego okna
            this.OnResize(null);
        }

        private void SearchDevicesForm_Resize(object sender, EventArgs e)
        {
            //dostosuj rozmiary kolumn w liście urządzeń
            columnAddress.Width =
                devicesList.Width -
                columnStatus.Width -
                columnPing.Width;
        }
    }
}
